//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "common\fn_setInstanceID.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_object","_id"];
DEFAULT_PARAM(_object,0,objNull);
DEFAULT_PARAM(_id,1,TMF_SERVER_INSTANCE_ID);
if (_id == "") then { _id = TMF_SERVER_INSTANCE_ID };
OSETVARP(_object,QGVAR(MISSION_INSTANCE_ID),_id);
TRACE_1("End",_id);
TMFPROFILERSTOP;
